package com.example.boot1.conttoller;

import com.example.boot1.service.AopDemoService;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class AopDemoController {

    private final Logger logger = LoggerFactory.getLogger(AopDemoController.class);

    @Autowired
    AopDemoService aopDemoService;


    @RequestMapping("/batchAdd")
    public String batchAdd(String name,String password) {
        logger.debug("***********jjjjjkkkkk***********");
        aopDemoService.batchAdd(name, password);
        return "成功";
    }
}
